<?php

namespace app\admin\validate;

use think\Validate;


class Grade extends Validate
{
    protected $rule = [
        'pid' => 'require',
        'name' => 'require',
        'icon' => 'require|url',
        'text' => 'require',
    ];
    protected $message = [
        'pid.require' => '分类选取错误',
        'name.require' => '名称不能为空',
        'icon.url' => '图片地址格式不正确',
        'icon.require' => '图标不能为空',
        'text.require' => '备注不能为空'
    ];
}